<?php
/**
 * Created by PhpStorm.
 * User: liujialiang
 * Date: 2017/8/21
 * Time: 12:33
 */
$file=fopen('test.php','a');
$txt='echo 123;';
fwrite($file,$txt);
fclose($file);

